import { IModuleRegistry, ISlotRegister, IReducerRegister, IRegisterProps } from '../../../core';

import Dragger from './Dragger';
import reducer from './reducer';

export default class DraggerModule implements IModuleRegistry {

    registerComponent(register: ISlotRegister) {
        register.register({
            component: Dragger as IRegisterProps['component'],
            props: {
                width: 375,
                height: 667
            },  
            slot: 'layout-center',    
        })
    }

    registerReducer(reducerRegister: IReducerRegister) {
        reducerRegister.register('dragger', reducer);
    }
}